package dataStructure.kmp;

import java.util.Arrays;

/**
 * @author lhn
 * @date 2024-09-10 20:23
 */

public class kmpTest {
    public static void main(String[] args) {
        String str1 = "BBC ABCDAB ABCDABCDABDE";
        String str2 = "ABCDABD";

//        int[] matchingTable = obtainPartialMatchingTable("AAAB");
//        int[] matchingTable = obtainPartialMatchingTable(str2);
//        System.out.println(Arrays.toString(matchingTable));
//
//        System.out.println(
//                kmpMatch(str1, str2, matchingTable)
//        );

    }

}
